<?php
$yii = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'restaurant' . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'framework' . DIRECTORY_SEPARATOR . 'yii.php';

//echo $yii;exit;
require(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'restaurant' . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'framework' . DIRECTORY_SEPARATOR . 'yii.php');

class PHP_P1 {

    var $foo;
    var $bar;
	

	

//    public  function get_cache($prefix) {
//        $session = new CHttpSession;
//        $session->open();
//        $sessionID = $session->sessionID;
//        return Yii::app()->fileCache->get($sessionID . $prefix);
//    }
//
//    public  function set_cache($data, $pirefix, $time = null) {
//        $session = new CHttpSession;
//        $session->open();
//        $sessionID = $session->sessionID;
//        
//        print_r(Yii::app()->fileCache->offsetExists($sessionID . $prefix));exit;
//        $sessionID="nguyenthevinh";
//        if (Yii::app()->fileCache->offsetExists($sessionID . $prefix))
//            Yii::app()->fileCache->delete($sessionID . $prefix);
//        if ($time == null)
//            $time = 24 * 60 * 60;
//        Yii::app()->fileCache->set($sessionID . $prefix, $data, $time);
//    }
}
?>
<br/>

<b>required: class PHP_P1</b>
